import request from "@/config/request.js";

export const loadAdminDepart=function (params={}) {
  return request({
    url: "/api/v1/admin/faculties",
    method: "get",
    params: params
  })
}
export const removeAdminDepart=function (department_id) {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'delete',
    params: { department_id},
  })
}
export const insertNewFaculties = function (data = {}) {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'post',
    data: data,
  })
}

export const updateFacultiesById = function (data = {}) {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'put',
    data: data,
  })
}
